package com.kaifamiao.month03.day0317;

public class QueueTest {

    public static void main(String[] args) {
        Queue queue = new Queue();
        for(int i = 0; i < 5; i ++){
            User user = new User();
            user.name = "test" + i;
            user.phone = "1234567890" + i;
            user.card = System.currentTimeMillis();
            user.password = "123456";
            queue.add(user);
        }
        queue.remove();
        for(int i = 0; i < queue.count; i ++){
            queue.users[i].show();
        }
        User u1 = queue.element();
        u1.show();
    }
}
